<?php
/**
 * 优惠券控制器前台
 * Created by PhpStorm.
 * User: zxj
 * Date: 17/5/2
 * Time: 下午5:18
 */
namespace App\Http\Controllers\Home;

use App\Models\MyFavorable;


class MyFavorableController extends BaseController
{

    public function __construct(MyFavorable $myfavorable)
    {
        parent::__construct();
        $this->myfavorable = $myfavorable;
    }

    /**
     * @return \Illuminate\Http\JsonResponse
     * 优惠券列表
     */
    public function getListMyFavorable(){

        $res = $this->myfavorable->favorableList(request());
        return ajax_return($res);

    }



}